package com.mobjam.workingtitleforagame.UnitTests;

import com.mobjam.workingtitleforagame.Monster;

import android.graphics.BitmapFactory;
import android.test.AndroidTestCase;

public class MonsterTest extends AndroidTestCase {

	private Monster monster;
	private int hp, mp;
	private String skills[], tempSkills[];
	/*public MonsterTest(String name) {
		super(name);
	}*/

	protected void setUp() throws Exception {
		super.setUp();
		hp = 50;
		mp = 50;
		skills = new String[] {"Heal1", "Lightning1"};
		tempSkills = new String[skills.length];
		monster = new Monster(BitmapFactory.decodeFile("/WorkingTitleForAGame/res/drawable-mdpi/ic_launcher.png"));
		monster.setHP(hp);
		monster.setMP(mp);
		monster.setSkills(skills);
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

/*	public void testMonster() {
		fail("Not yet implemented");
	}

	public void testMonsterBitmap() {
		fail("Not yet implemented");
	}

	public void testSetHP() {
		fail("Not yet implemented");
	}

	public void testSetMP() {
		fail("Not yet implemented");
	}

	public void testSetSkills() {
		fail("Not yet implemented");
	}
*/
	public void testGetHP() {
		assertTrue( monster.getHP() == hp );
	}

	public void testGetMP() {
		assertTrue( monster.getMP() == mp );
	}

	public void testGetSkills() {
		tempSkills = new String[3];
		monster.getSkills(tempSkills);
		for( int i = 0; i < skills.length; i++)
			assertTrue(tempSkills[i] == skills[i]);
	}

}
